<div align="center">

<div style="width: 400px;" class="texto" id="cont-writeComment" align="left">
</div>
<br />
<button id="but-sendComment"><?php echo __('Send comment'); ?></button>
<br />
<br />
<div id="cont-comments" style="opacity: 1; display: block; overflow: visible;">

<?php
foreach ($comments as $count => $comment)
{
	$author = $comment->getAuthor();
	?>
	<table <?php if(!($count & 1)) echo 'class="ui-state-default ui-corner-all"'; ?> width="100%">
	<tbody>
		<tr>
			<td valign="top" width="50px">
				<a class="ui-helper-reset" href="#profile/load/id/<?php echo $author->getId();?>" rel="history">
					<img alt="<?php echo $author->getUsername();?>" title="<?php echo $author->getUsername();?>" src="core/photo/thumbnail/id/<?php echo $author->getMainPhotoId();?>/type/mini" class="ui-state-default ui-corner-all" border="0">
				</a>
			</td>
			<td valign="top"><div style="color: rgb(0, 0, 0);">
				<a class="ui-helper-reset" href="#profile/load/id/<?php echo $author->getId();?>" rel="history" style="color: rgb(0, 0, 0);">
					<?php echo $author->getFirstname()." ".$author->getLastname();?>
				</a>, 
				<span><?php
				echo format_datetime(strtotime($comment->getCreatedAt()),"f");

				?></span>
				<?php
					if($comment->getSoundId()){
						$sound = $comment->getSound();
						?>
						<span sound="<?php echo $sound->getSoundId();?>" class="player">
							<a href="javascript:void(0)">
								<span class="stop icon-right ui-icon ui-icon-stop"></span>
							</a>
							<a href="javascript:void(0)">
								<span class="play icon-right ui-icon ui-icon-play"></span>
							</a>
							<span class="icon-right"><?php echo $sound->getName();?></span></span>
						<?php
					} 
				?>
				</div>
				<div>
					<div class="comment" style="color: rgb(0, 0, 255); font-family: times new roman,times;"><?php echo $comment->getComment();?></div>
				</div>
			</td>
		</tr>
	</tbody>
	</table>
	<div><br/></div>
	<?php
}
?>
</div>
<div class="paginator"></div>
<input type="hidden" id="txt-pageCount" value="<?php echo $pageCount; ?>"/>
<input type="hidden" value="<?php echo __("Comments"); ?> " class="txt-widgetName" />
</div>

